package com.xm.biz.impl;

import com.xm.biz.OrderGoodsBiz;
import com.xm.dao.OrderGoodsDao;
import com.xm.dao.impl.OrderGoodsDaoImpl;
import com.xm.po.OrderGoods;

import java.util.List;

/**
 * @author Administrator
 * @date 2020-08-19-14:19
 * @description 订单商品数据操作业务逻辑接口实体类
 */
public class OrderGoodsBizImpl implements OrderGoodsBiz {
    OrderGoodsDao orderGoodsDao=new OrderGoodsDaoImpl();
    @Override
    public List<OrderGoods> getAll() {
        return orderGoodsDao.getAll();
    }

    @Override
    public boolean add(OrderGoods orderGoods) {
        return orderGoodsDao.add(orderGoods);
    }

    @Override
    public boolean orderUpdate(OrderGoods orderGoods) {
        return orderGoodsDao.orederUpdate(orderGoods);
    }

    @Override
    public List<OrderGoods> getOrderGoodsByNo(Integer orderId) {
        return orderGoodsDao.getOrderGoodsByNo(orderId);
    }

    @Override
    public OrderGoods getById(Integer id) {
        return orderGoodsDao.getById(id);
    }

    @Override
    public boolean orderDelete(Integer id) {
        return orderGoodsDao.orderDelete(id);
    }
}
